<!--
 * @Author: your name
 * @Date: 2021-03-13 21:20:28
 * @LastEditTime: 2021-03-13 21:26:45
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \adminPC\src\views\My\widget\editPw.vue
-->
<template>
  <JForm :form-config="passwordForm" @handleBoxEvent="$emit('handleBoxEvent',$event)" />
</template>

<script>
import JForm from '@/components/JForm'
export default {
  components: {
    JForm
  },
  data() {
    const passwordOption = [
      {
        name: 'oldPw',
        label: '原密码',
        required: true,
        type: 'password',
        placeholder: '',
        span: 16
      },
      {
        name: 'newPw',
        label: '新密码',
        type: 'password',
        required: true,
        span: 16
      },
      {
        name: 'RNewPw',
        label: '确认密码',
        required: true,
        type: 'password',
        placeholder: '',
        span: 16
      }
    ]
    return {
      passwordOption
    }
  },
  computed: {
    passwordForm() {
      const data = this.passwordOption
      const result = data
      return result
    }
  }
}
</script>
